# 开发人: 余金晶
# 开发时间: 2022/10/1 18:16
import turtle
import time
def LittleHeart():
    for i in range(200):
        turtle.right(1)
        turtle.forward(2)
love=input('请输入表白语句:')
me=input('请输入表白对象:')
if love == '':
    love = 'I Love you'
turtle.setup(width=800,height=500)
turtle.color('red','pink')
turtle.pensize(5)
turtle.speed(1)
turtle.up()
turtle.hideturtle()
turtle.goto(0,-180)
turtle.showturtle()
turtle.down()
turtle.speed(1)
turtle.begin_fill()
turtle.left(140)
turtle.forward(224)
LittleHeart()
turtle.left(120)
LittleHeart()
turtle.forward(224)
turtle.end_fill()
turtle.pensize(5)
turtle.up()
turtle.hideturtle()
turtle.goto(0,0)
turtle.showturtle()
turtle.color('black','pink')
turtle.write(love,font=('gungsuh',30,),align="center")
turtle.up()
turtle.hideturtle()
time.sleep(2)
turtle.goto(0,0)
turtle.showturtle()
turtle.color('black','pink')
time.sleep(2)
turtle.goto(180,-180)
turtle.showturtle()
turtle.write(me, font=(20,), align="center",move=True)
window = turtle.Screen()
window.exitonclick()

